<?php
/**
 * 项目根目录
 * User: shouxue
 * Date: 2017/9/22
 * Time: 13:03
 */
ini_set("display_errors", "On");
error_reporting(E_ALL | E_STRICT);
ini_set('date.timezone','Asia/Shanghai');
header("Content-type: text/html; charset=utf-8");

//入口
define('IN_XIAOMA', true);
//定义全局常量
define('ROOT_PATH', str_replace('init.php', '', str_replace('\\', '/', __FILE__)));

/*载入关系*/
require_once(ROOT_PATH.'/env.php');
require_once(ROOT_PATH.'/config.php');
require_once(ROOT_PATH.'/function.php');
require_once(ROOT_PATH.'/service/Ioc.php');
require_once(ROOT_PATH.'/service/response.php');
require_once(ROOT_PATH.'/service/base.php');
require_once(ROOT_PATH.'/service/logs.php');



//初始化        
$Ioc =  new Ioc();
$Ioc->Response = 'Response';
$Ioc->logs 	   = 'logs';


$Ioc->logs->write_log('info','初始化展开');
//$Ioc->Response->Json('202','成功','' ,'json');
